package type;

/**
 * @Date 2021/4/29 11:53 上午
 * @Author dengxin
 */
public class Generic4 {

    public static void main(String[] args) {
        Class<Integer> integerClass = int.class;
        System.out.println(integerClass.getTypeName());
        System.out.println(integerClass.getCanonicalName());
        integerClass = Integer.TYPE;
        System.out.println(integerClass.getTypeName());
//        integerClass = Number.class;
        Class<? extends Number> numberClass = Number.class;
        System.out.println(numberClass.getTypeName());
        numberClass = double.class;
        System.out.println(numberClass.getTypeName());
        numberClass = Double.TYPE;
        System.out.println(numberClass.getTypeName());
        Class<?> objClass = Integer.TYPE;
        System.out.println(objClass.getTypeName());
        objClass = String.class;
        System.out.println(objClass.getTypeName());
        objClass = Boolean.TYPE;
        System.out.println(objClass.getTypeName());
    }
}
